package com.xidian.zhiancloud.model;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 事故基本信息
 * @Author ZC
 */
@Data
@TableName(value = "t_accident_message")
public class AccidentMessage {
    /**
     *   id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *   多租户id
     */
    private Long companyId;

    /**
     *   事故编号
     */
    @Excel(name="事故编号",orderNum = "1",needMerge = true)
    private String accidentNo;

    /**
     *   事故名称
     */
    @Excel(name="事故名称",orderNum = "2",needMerge = true)
    private String accidentName;

    /**
     *   事故发生地点
     */
    @Excel(name="事故发生地点",orderNum = "3",needMerge = true)
    private String position;

    /**
     *   事故发生时间
     */
    @Excel(name="事故发生时间",orderNum = "4",needMerge = true)
    private Date happenTime;

    /**
     *   事故责任单位/部门id
     */
    private Long departmentId;

    /**
     *   事故发生简要经过
     */
    @Excel(name="事故发生简要经过",orderNum = "6",needMerge = true)
    private String briefHistory;

    /**
     *   事故人员伤亡情况
     */
    @Excel(name="事故人员伤亡情况",orderNum = "7",needMerge = true)
    private String personSituation;

    /**
     *   现场处理情况
     */
    @Excel(name="现场处理情况",orderNum = "8",needMerge = true)
    private String onSiteTreatment;

    /**
     *   已采取的措施
     */
    @Excel(name="已采取措施",orderNum = "9",needMerge = true)
    private String measuresTaken;

    /**
     *   附件url，多个url用逗号分隔
     */
    private String annexUrls;

    /**
     *   审核状态: 0待提交，1待审核，2审核通过，3审核驳回
     */
    private Integer reviewStatus;

    /**
     * 处理状态：0待调查处理 1已调查处理
     */
    private Integer handleStatus;

    /**
     *   登记时间
     */
    @Excel(name = "上报时间",orderNum = "11",needMerge = true)
    private Date createTime;

    /**
     *   登记人id
     */
    private Long creator;
}